package com.changgou.template;

import com.changgou.config.RabbitmqConfig;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义RabbitTemplate
 * 
 * @author gaofeng
 * @date 2025/4/28 19:44
 */
@Configuration
public class MyRabbitTemplate {
    @Bean
    public RabbitTemplate getRabbitTemplate() {
        return new RabbitTemplate(RabbitmqConfig.connectionFactory());
    }
}
